Systems and methods for discharging an AC input capacitor with automatic detection

ABSTRACT

System and method for discharging a capacitor. An example system includes a signal detector and a discharge control component. The signal detector is configured to receive an input signal and generate a detection signal based on at least information associated with the input signal, the input signal being associated with an alternate current signal received by a capacitor including a first capacitor terminal and a second capacitor terminal. The discharge control component configured to receive at least the detection signal and generate an output signal to discharge the capacitor if the detection signal satisfies one or more conditions.

1. CROSS-REFERENCES TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No.15/835,232, filed Dec. 7, 2017, which is a continuation of U.S. patentapplication Ser. No. 15/089,231, filed Apr. 1, 2016, which is acontinuation of U.S. patent application Ser. No. 13/367,097, filed Feb.6, 2012, which claims priority to U.S. Provisional Application No.61/443,637, filed Feb. 16, 2011, commonly assigned, all of theabove-referenced applications being incorporated by reference herein forall purposes.

Additionally, this application is related to U.S. patent applicationSer. No. 12/892,580, filed Sep. 28, 2010, which is incorporated byreference herein for all purposes.

2. BACKGROUND OF THE INVENTION

The present invention is directed to integrated circuits. Moreparticularly, the invention provides systems and methods for discharginga capacitor with automatic detection. Merely by way of example, theinvention has been applied to a power converter. But it would berecognized that the invention has a much broader range of applicability.

Power converters have been widely used for consumer electronics such asportable devices. The power converters can convert electric power fromone form to another. As an example, the electric power is transformedfrom alternate current (AC) to direct current (DC), from DC to AC, fromAC to AC, or from DC to DC. Additionally, the power converters can alsoconvert the electric power from one voltage level to another voltagelevel. Specifically, the power converters include linear converters andswitch-mode converters. The switch-mode converters often usepulse-width-modulated (PWM) or pulse-frequency-modulated (PFM)mechanisms. The switch-mode converters usually are more efficient thanthe linear converters.

FIG. 1 is a simplified conventional diagram showing a switch-mode powerconversion system with an AC input resistor and an AC input capacitor.The switch-mode power conversion system 100 includes an alternatingcurrent (AC) input resistor 120 (e.g., an X-resistor), an AC inputcapacitor 110 (e.g., an X-capacitor), input terminals 122 and 124, aswitch-mode controller 130, a primary winding 172, a secondary winding174, an auxiliary winding 176, and a switch 180.

As shown in FIG. 1, the switch-mode power conversion system 100 includesthe AC input capacitor 110 that is connected to the input terminals 122and 124. The AC input capacitor 110 often is used to address the issueof electromagnetic interference (EMI). Additionally, to comply with somesafety requirements, the voltage across the AC input capacitor 110 needsto drop below a predetermined threshold (e.g., direct current 60V) in ashort time period (e.g., within 1 second) after the input terminals 122and 124 are disconnected from an AC power supply. To facilitate thedischarge of the AC input capacitor 110, the power conversion system 100also includes the AC input resistor 120 that is connected to the ACinput capacitor 110 in parallel.

But the AC input resistor 120 also consumes power when the power supplyfor AC input voltage is not disconnected and thus causes the standbypower consumption of the power conversion system 100 to rise. Forexample, if the AC input resistor 120 has a resistance of 3 MΩ, then,with a 264-volt AC input voltage, the power consumption of the resistor120 is about 23 mW.

As shown in FIG. 1, after the input terminals 122 and 124 aredisconnected from the AC power supply, the charges accumulated on the ACinput capacitor 110 are released through the AC input resistor 120. Forexample, the voltage across the AC input capacitor 110 decreases withtime as follows.

$\begin{matrix}{{V_{xc}(t)} = {V_{0} \times e^{- {(\frac{t}{R_{x}C_{x}})}}}} & \left( {{Equation}\mspace{14mu} 1} \right)\end{matrix}$where V_(xc) is the voltage across the AC input capacitor 110, and V₀ isthe voltage value of V_(xc) at the time when the input terminals 122 and124 are disconnected from the AC power supply. R_(x) and C_(x) are theresistance value and the capacitance value of the AC input resistor 120and the AC input capacitor 110 respectively.

As an example, in order for V_(xc) to drop approximately by a factor ofe within one second, the resistance of the AC input resistor 120satisfies the following equation.

$\begin{matrix}{R_{x} \approx \frac{1}{C_{x}}} & \left( {{Equation}\mspace{14mu} 2} \right)\end{matrix}$

Usually, the magnitude of C_(x) depends on the power of the switch-modepower conversion system 100 and the solution to electromagneticinterference. If the capacitance of the AC input capacitor 110 isincreased, the resistance of the AC input resistor 120 would becomesmaller according to Equation 2 and the AC input resistor 120 mayconsume more power.

Hence it is highly desirable to improve the techniques of dischargingthe AC input capacitor in order to reduce the power loss.

3. BRIEF SUMMARY OF THE INVENTION

The present invention is directed to integrated circuits. Moreparticularly, the invention provides systems and methods for discharginga capacitor with automatic detection. Merely by way of example, theinvention has been applied to a power converter. But it would berecognized that the invention has a much broader range of applicability.

According to one embodiment, a system for discharging a capacitorincludes a signal detector and a discharge control component. The signaldetector is configured to receive an input signal and generate adetection signal based on at least information associated with the inputsignal, the input signal being associated with an alternate currentsignal received by a capacitor including a first capacitor terminal anda second capacitor terminal. A discharge control component is configuredto receive at least the detection signal and generate an output signalto discharge the capacitor if the detection signal satisfies one or moreconditions.

According to another embodiment, a system for detecting an input signalincludes a comparator, a pulse generator, and a detection component. Thecomparator is configured to receive an input signal and a thresholdsignal and generate a comparison signal based on at least informationassociated with the input signal and the threshold signal. The pulsegenerator is configured to generate a pulse signal based on at leastinformation associated with the comparison signal. The detectioncomponent is configured to receive the pulse signal and generate adetection signal based on at least information associated with the pulsesignal. The comparator is further configured to change the comparisonsignal from a first logic level to a second logic level if the inputsignal changes from a first input value larger than the threshold signalto a second input value smaller than the threshold signal. In addition,the comparator is configured to change the comparison signal from thesecond logic level to the first logic level if the input signal changesfrom a third input value smaller than the threshold signal to a fourthinput value larger than the threshold signal. The pulse generator isfurther configured to generate a pulse if the comparison signal ischanged from the first logic level to the second logic level or if thecomparison signal is changed from the second logic level to the firstlogic level. Furthermore, the detection component is further configuredto change the detection signal from a third logic level to a fourthlogic level if no pulse is generated by the pulse generator for apredetermined time period.

According to yet another embodiment, a system for discharging a deviceincludes a first transistor including a first transistor terminal, asecond transistor terminal and a third transistor terminal, a secondtransistor including a fourth transistor terminal, a fifth transistorterminal and a sixth transistor terminal, a third transistor including aseventh transistor terminal, an eighth transistor terminal and a ninthtransistor terminal, and a fourth transistor including a tenthtransistor terminal, an eleventh transistor terminal and a twelfthtransistor terminal. The second transistor terminal is connected to thefourth transistor terminal. The fifth transistor terminal is connectedto the seventh transistor terminal. The eighth transistor terminal isconnected to the eleventh terminal and configured to receive an inputsignal. Additionally, the system is further configured to, if the inputsignal satisfies one or more conditions, turn on the first transistorand the fourth transistor, and discharge the device through at least thefirst transistor and the fourth transistor.

In one embodiment, a system for detecting an input signal includes asignal detector, a comparator, a first pulse generator, and a detectioncomponent. The signal detector is configured to sample an input signaland generate one or more sampled signals including a first sampledsignal. The comparator is configured to receive the one or more sampledsignals and a threshold signal and generate a comparison signal based onat least information associated with the one or more sampled signals andthe threshold signal. The first pulse generator is configured togenerate a first pulse signal based on at least information associatedwith the comparison signal. The detection component is configured toreceive the first pulse signal and generate a detection signal based onat least information associated with the first pulse signal. Thecomparator is further configured to, if the first sampled signal issmaller than the threshold signal, generate the comparison signal at afirst logic level. Additionally, the comparator is configured to, if thefirst sampled signal is larger than the threshold signal, generate thecomparison signal at a second logic level. Moreover, the first pulsegenerator is further configured to generate a pulse if the comparisonsignal is changed from the first logic level to the second logic levelor if the comparison signal is changed from the second logic level tothe first logic level. The detection component is further configured tochange the detection signal from a third logic level to a fourth logiclevel if no pulse is generated by the first pulse generator for apredetermined time period.

In another embodiment, a system for detecting an input signal anddischarging a device includes a first transistor including a firsttransistor terminal, a second transistor terminal and a third transistorterminal, a second transistor including a fourth transistor terminal, afifth transistor terminal and a sixth transistor terminal, and a thirdtransistor including a seventh transistor terminal, an eighth transistorterminal and a ninth transistor terminal. The system further includes afirst resistor including a first resistor terminal and a second resistorterminal, and a second resistor including a third resistor terminal anda fourth resistor terminal. The third transistor terminal is connected,directly or indirectly, to the fourth transistor terminal. The thirdtransistor terminal is connected, directly or indirectly, to the firstresistor terminal. The second resistor terminal is connected to thethird resistor terminal. The fourth resistor terminal is connected tothe seventh transistor terminal. The first transistor terminal isconfigured to receive an input signal. The second transistor terminal isconfigured to receive a first drive signal. The fifth transistorterminal is configured to receive a second drive signal. Moreover, theeighth transistor terminal is configured to receive a third drivesignal. The system is further configured to, if the first drive signalsatisfies one or more first conditions and the second drive signalsatisfies one or more second conditions, turn on the first transistorand the second transistor, and discharge the device through at least thefirst transistor and the second transistor. In addition, the system isfurther configured to, if the first drive signal satisfies the one ormore first conditions and the third drive signal satisfies one or morethird conditions, turn on the first transistor and the third transistor,and generate an output signal based on at least information associatedwith the input signal.

In yet another embodiment, a system for detecting an input signalincludes a signal detector, a comparator, a counting component, and adetection component. The signal detector is configured to sample aninput signal at a plurality of times during a first predetermined timeperiod and generate a plurality of sampled signals corresponding to theplurality of times respectively, the plurality of times including afirst time and a second time immediately after the first time, theplurality of sampled signals including a first sampled signalcorresponding to the first time and a second sampled signalcorresponding to the second time. The comparator is configured toreceive the plurality of sampled signals and generate a comparisonsignal based on at least information associated with the plurality ofsampled signals. The counting component is configured to receive atleast the comparison signal and change a value based on at leastinformation associated with the comparison signal. The detectioncomponent is configured to generate a detection signal based on at leastinformation associated with the value. The comparator is furtherconfigured to, if the first sampled signal is smaller than the secondsampled signal, generate the comparison signal at a first logic level.Additionally, the comparator is configured to, if the first sampledsignal is larger than the second sampled signal, generate the comparisonsignal at the second logic level. The counting component is furtherconfigured to increase the value by a first predetermined magnitude ifthe comparison signal is at the first logic level, and decrease thevalue by a second predetermined magnitude if the comparison signal is atthe second logic level. The detection component is further configured tochange the detection signal from a third logic level to a fourth logiclevel if the value is larger than a first threshold or smaller than asecond threshold after the first predetermined time period.

Many benefits are achieved by way of the present invention overconventional techniques. Certain embodiments of the present inventionprovide a system and method for automatically detecting the AC inputvoltage, and if appropriate, in response, quickly discharging the ACinput capacitor. For example, the system and method can reduce the powerconsumption (e.g., standby power consumption) of the power conversionsystem. In another example, the system and method does not need to usethe AC input resistor.

Depending upon embodiment, one or more of these benefits may beachieved. These benefits and various additional objects, features andadvantages of the present invention can be fully appreciated withreference to the detailed description and accompanying drawings thatfollow.

4. BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a simplified conventional diagram showing a switch-mode powerconversion system with an AC input resistor and an AC input capacitor.

FIG. 2 is a simplified diagram showing a switch-mode power conversionsystem according to an embodiment of the present invention.

FIG. 3 is a simplified diagram showing a controller for the switch-modepower conversion system of FIG. 2 according to an embodiment of thepresent invention.

FIG. 4 is a simplified diagram showing an AC detection component as partof the controller for the switch-mode power conversion system of FIG. 2according to an embodiment of the present invention.

FIG. 5 is a simplified timing diagram for generating a detection signalby the AC detection component of FIG. 4 as part of the controller forthe switch-mode power conversion system of FIG. 2 according to anembodiment of the present invention.

FIG. 6 is a simplified diagram showing a voltage control component aspart of the controller for the switch-mode power conversion system ofFIG. 2 according to an embodiment of the present invention.

FIG. 7 is a simplified diagram showing the AC detection component ofFIG. 4 and the voltage control component of FIG. 6 as parts of thecontroller for the switch-mode power conversion system of FIG. 2according to another embodiment of the present invention.

FIG. 8 is a simplified diagram showing a switch-mode power conversionsystem according to another embodiment of the present invention.

FIG. 9 is a simplified diagram showing an AC detection component as partof the controller for the switch-mode power conversion system of FIG. 8according to an embodiment of the present invention.

FIG. 10 is a simplified timing diagram for generating a detection signalby the AC detection component of FIG. 9 as part of the controller forthe switch-mode power conversion system of FIG. 8 according to anembodiment of the present invention.

FIG. 11 is a simplified timing diagram for generating the detectionsignal by the AC detection component of FIG. 9 as part of the controllerfor the switch-mode power conversion system of FIG. 8 according toanother embodiment of the present invention.

FIG. 12 is a simplified diagram showing a combination component for asampling component and a voltage control component of FIG. 9 as parts ofthe controller for the switch-mode power conversion system of FIG. 8according to an embodiment of the present invention.

FIG. 13 is a simplified diagram showing the AC detection component andthe voltage control component of FIG. 9 as parts of the controller forthe switch-mode power conversion system of FIG. 8 according to anembodiment of the present invention.

FIG. 14 is a simplified diagram showing an AC detection component aspart of the controller for the switch-mode power conversion system ofFIG. 8 according to another embodiment of the present invention.

FIG. 15 is a simplified timing diagram for generating a detection signalby the AC detection component of FIG. 14 as part of the controller forthe switch-mode power conversion system FIG. 8 according to anotherembodiment of the present invention.

5. DETAILED DESCRIPTION OF THE INVENTION

The present invention is directed to integrated circuits. Moreparticularly, the invention provides systems and methods for discharginga capacitor with automatic detection. Merely by way of example, theinvention has been applied to a power converter. But it would berecognized that the invention has a much broader range of applicability.

FIG. 2 is a simplified diagram showing a switch-mode power conversionsystem according to an embodiment of the present invention. This diagramis merely an example, which should not unduly limit the scope of theclaims. One of ordinary skill in the art would recognize manyvariations, alternatives, and modifications.

The power conversion system 200 includes AC input terminals 270 and 272,an AC input capacitor 210, diodes 220 and 222, resistors 230 and 232, acontroller 240, a primary winding 282, a secondary winding 284, anauxiliary winding 286, and a switch 280. The power conversion system 200further includes diodes 224 and 226. For example, the controller 240 isa chip that includes terminals 250, 252, 254, 256, 258, 260, and 262. Inanother example, the controller 240 includes an AC detection component296 and a voltage control component 298. In yet another example, theterminal 256 (e.g., GND) is biased at a chip-ground voltage 292. In yetanother example, an anode terminal of the diode 224 is biased at thechip-ground voltage 292. In yet another example, an anode terminal ofthe diode 226 is biased at the chip-ground voltage 292.

In one embodiment, a voltage divider that includes the resistors 230 and232 receives a signal 236 from an AC input terminal 272 (or an AC inputterminal 270) and outputs a signal 234. For example, the AC detectioncomponent 296 receives the signal 234 through the terminal 250 (e.g.,terminal BO) and outputs a signal 294 to the voltage control component298. In another example, if the signal 294 indicates that the AC inputterminals 270 and 272 are disconnected from an AC power supply, thevoltage control component 298 discharges the AC input capacitor 210through the diode 220 or the diode 222 in combination with otherinternal circuit components of the controller 240.

The resistance values of the resistors 230 and 232 can be made large andthe power consumption of the resistors 230 and 232 can thus be reducedaccording to certain embodiments. For example, if the resistance valueof the resistor 230 is 40 MΩ and the resistance value of the resistor232 is 300 KΩ, the power consumption of the resistors 230 and 232, witha 264-volt AC input voltage, is about 1.7 mW, which is much lower thanthe power consumption of 23 mW for the AC input resistor 120 asdiscussed above.

FIG. 3 is a simplified diagram showing the controller 240 for theswitch-mode power conversion system 200 according to an embodiment ofthe present invention. This diagram is merely an example, which shouldnot unduly limit the scope of the claims. One of ordinary skill in theart would recognize many variations, alternatives, and modifications.The controller 240 includes at least an AC detection component 310, avoltage control component 320, a brownout detection component 330, andan under-voltage-lockout (UVLO) component 340. For example, the ACdetection component 310 and the voltage control component 320 are thesame as the AC detection component 296 and the voltage control component298, respectively.

In one embodiment, the AC detection component 310 receives at least asignal 312 through the terminal 250 (e.g., terminal BO) and a thresholdsignal 316 (e.g., V_(th_bo)). For example, the AC detection component310 compares the signal 312 with the threshold signal 316, and outputs adetection signal 314 (e.g., ACoff). In another example, if the magnitudeof the signal 312 crosses over the threshold 316 (e.g., V_(th_bo))periodically, the AC input terminals 270 and 272 are not disconnectedfrom the AC power supply. In yet another example, if the magnitude ofthe signal 312 does not cross over the threshold 316 (e.g., V_(th_bo))for a predetermined period of time, it is recognized that the AC inputterminals 270 and 272 are disconnected from the AC power supply. In yetanother example, the detection signal 314 (e.g., ACoff) is at a logichigh level if the AC input terminals 270 and 272 are disconnected fromthe AC power supply, and is at a logic low level if the AC inputterminals 270 and 272 are not disconnected from the AC power supply. Inyet another example, the signal 312 is associated with an input signal(e.g., an AC input voltage) received at the AC input terminals 270 and272. In yet another example, the threshold signal 316 is much largerthan zero in magnitude. In yet another example, the threshold signal 316has a low magnitude (e.g., close to zero). In yet another example, thesignal 312 is the same as the signal 234. In yet another example, thesignal 314 is the same as the signal 294.

In another embodiment, the UVLO component 340 receives a signal 344through the terminal 260 (e.g., terminal VDD) and outputs at least asignal 342 (e.g., PWD). For example, if the signal 344 is larger than apredetermined threshold in magnitude, the signal 342 (e.g., PWD) is at alogic high level. In another example, if the signal 344 is lower thanthe predetermined threshold in magnitude, the signal 342 (e.g., PWD) isat a logic low level.

In yet another embodiment, the voltage control component 320 receivesthe detection signal 314 and the signal 342 (e.g., PWD) and outputs asignal 322. In another example, if the detection signal 314 is at thelogic high level and the signal 342 (e.g., PWD) is at the logic lowlevel, the voltage control component 320 discharges the AC inputcapacitor 210 by reducing the voltage level of the signal 322 throughthe terminal 262 (e.g., terminal HV). In another example, if the signal342 (e.g., PWD) is at the logic high level and/or the detection signal314 (e.g., ACoff) is at the logic low level, the voltage controlcomponent 320 does not discharge the AC input capacitor 210 by reducingthe voltage level of the signal 322 through the terminal 262 (e.g.,terminal HV). In yet another embodiment, the AC detection component 310shares the same terminal 250 with the brownout detection component 330,without requiring any additional terminal for the controller chip.

FIG. 4 is a simplified diagram showing an AC detection componentaccording to an embodiment of the present invention. This diagram ismerely an example, which should not unduly limit the scope of theclaims. One of ordinary skill in the art would recognize manyvariations, alternatives, and modifications. The AC detection component400 includes a comparator 410, a debounce component 420, a pulsegenerator 430, and a counter 440. For example, the AC detectioncomponent 400 is the same as the AC detection component 310. In anotherexample, the AC detection component 400 is used to replace the ACdetection component 296 in FIG. 2.

In one embodiment, the comparator 410 receives and compares a signal 402(e.g., BO) and a threshold signal 404 (e.g., V_(th_bo)), and inresponse, outputs a comparison signal 412 to the debounce component 420.In another example, if the magnitude of the signal 402 crosses over thethreshold 404 (e.g., V_(th_bo)) periodically, the AC input terminals 270and 272 are not disconnected from the AC power supply. In yet anotherexample, if the magnitude of the signal 402 does not cross over thethreshold 404 (e.g., V_(th_bo)) for a predetermined period of time, theAC input terminals 270 and 272 are disconnected from the AC powersupply. In yet another example, the signal 402 is the same as the signal312. In yet another example, the signal 404 is the same as the signal316.

In another embodiment, the debounce component 420 generates a signal 422(e.g., the Cout signal), which is received by the pulse generator 430.For example, the pulse generator 430, in response, outputs a signal 432(e.g., the reset signal) to the counter 440. In another example, thecounter 440 also receives a clock signal 406 and generates a detectionsignal 408 (e.g., ACoff). In yet another example, the detection signal408 (e.g., ACoff) is at a logic high level if the AC input terminals 270and 272 are disconnected from the AC power supply, and is at a logic lowlevel if the AC input terminals 270 and 272 are not disconnected fromthe AC power supply. In yet another example, the signal 402 isassociated with an input signal (e.g., an AC input voltage) received atthe AC input terminals 270 and 272. In yet another example, thethreshold signal 404 is much larger than zero in magnitude. In yetanother example, the threshold signal 404 has a low magnitude (e.g.,close to zero). In some embodiments, the debounce component 420 isomitted and thus the signal 412 is the same as the signal 422. In yetanother example, the signal 406 is the same as the signal 318. In yetanother example, the signal 408 is the same as the signal 314.

FIG. 5 is a simplified timing diagram for generating the detectionsignal 408 by the AC detection component 400 according to an embodimentof the present invention. This diagram is merely an example, whichshould not unduly limit the scope of the claims. One of ordinary skillin the art would recognize many variations, alternatives, andmodifications.

The waveform 510 represents an AC voltage across the AC input capacitor210 as a function of time, the waveform 520 represents the signal 402 asa function of time, and the waveform 530 represents the signal 422 as afunction of time. Additionally, the waveform 540 represents the signal432 as a function of time, and the waveform 550 represents the detectionsignal 408 as a function of time.

In one embodiment, the signal 422 (e.g., corresponding to the waveform530) is at a logic high level if the signal 402 (e.g., corresponding tothe waveform 520) is higher than the threshold signal 404 (e.g.,V_(th_bo)) in magnitude, and the signal 422 (e.g., corresponding to thewaveform 530) is at a logic low level if the signal 402 (e.g.,corresponding to the waveform 520) is lower than the threshold signal404 (e.g., V_(th_bo)) in magnitude. In another example, the pulsegenerator 430 detects rising edges and falling edges of the signal 422(e.g., corresponding to the waveform 530), and in response generatespulses for the signal 432 (e.g., corresponding to the waveform 540). Inyet another example, the counter 440 is reset by the pulses of thesignal 432 (e.g., corresponding to the waveform 540) and counts thelapse of time since the last reset. According to one embodiment, if thelapse of time since the last reset reaches a predetermined value (e.g.,30 ms), the counter 440 generates the detection signal 408 (e.g.,corresponding to the waveform 550 and changing to the logic high levelat time t₂) to indicate the AC input terminals 270 and 272 are no longerprovided with an AC input voltage. According to another embodiment, theAC input terminals 270 and 272 stop being provided with the AC inputvoltage at time t₁ as shown in FIG. 5. For example, the signal 402 has apeak magnitude 564 which is much larger than the threshold signal 404 inmagnitude.

FIG. 6 is a simplified diagram showing a voltage control componentaccording to an embodiment of the present invention. This diagram ismerely an example, which should not unduly limit the scope of theclaims. One of ordinary skill in the art would recognize manyvariations, alternatives, and modifications. The voltage controlcomponent 600 includes transistors 606, 610, 616 and 620 and a resistor630. The voltage control component 600 further includes resistors 608,622 and 630, and a current-limit component 624. For example, the voltagecontrol component 600 is the same as the voltage control component 320.In another example, the voltage control component 600 is used to replacethe voltage control component 298 in FIG. 2.

In one embodiment, the transistor 610 is a MOS transistor that sustainsa high voltage (e.g., 600 volts). For example, the transistor 610 is anN-channel MOS field effect transistor. In another example, thetransistor 606 is an N-channel field effect transistor and a sourceterminal of the transistor 606 is biased at a chip-ground voltage 692.In yet another example, the transistor 616 is an N-channel field effecttransistor and a source terminal of the transistor 616 is biased at thechip-ground voltage 692. In yet another example, the transistor 620 isan N-channel field effect transistor and a source terminal of thetransistor 620 is biased at the chip-ground voltage 692. In yet anotherexample, a drain terminal of the transistor 606 is connected to a gateterminal of the transistor 616. In yet another example, a drain terminalof the transistor 616 is connected to a gate terminal 610. In yetanother example, the resistor 630 is connected between a source terminalof the transistor 610 and a drain terminal of the transistor 620. In yetanother example, an anode terminal of the diode 626 is connected to thedrain terminal of the transistor 620, and a signal 632 is applied to acathode terminal of the diode 626. In yet another example, thechip-ground voltage 692 is the same as the chip-ground voltage 292.

As shown in FIG. 6, the voltage control component 600 receives at leasta detection signal 604 (e.g., ACoff) and a signal 602 (e.g., PWD)according to one embodiment. For example, the detection signal 604(e.g., ACoff) is at a logic high level if the AC input terminals 270 and272 are disconnected from the AC power supply, and is at a logic lowlevel if the AC input terminals 270 and 272 are not disconnected fromthe AC power supply. In another example, the signal 602 (e.g., PWD) isassociated with a signal 632 (e.g., VDD) that is applied to the terminal260. In yet another example, the signal 602 (e.g., PWD) is at a logichigh level if the signal 632 is larger than a predetermined threshold inmagnitude, and is at a logic low level if the signal 632 (e.g., VDD) islower than the predetermined threshold in magnitude. In yet anotherexample, the signal 602 is the same as the signal 342. In yet anotherexample, the signal 604 is the same as the signal 312.

According to another embodiment, if the detection signal 604 (e.g.,ACoff) is at the logic low level, the transistors 606 and 620 are turnedoff. For example, if the signal 602 (e.g., PWD) is at the logic highlevel, the transistor 616 is turned on. In another example, a gatesignal 612 is pulled down and the transistor 610 is turned off. In yetanother example, the transistor 618 is used as a large resistor.

According to yet another embodiment, if the detection signal 604 (e.g.,ACoff) is at the logic high level and the signal 602 (e.g., PWD) is atthe logic low level, the transistor 616 is turned off and the gatesignal 612 is raised. For example, the transistors 610 and 620 areturned on by the signals 612 and 604, respectively. In another example,the AC input capacitor 210 is discharged through the transistors 610 and620 and the resistor 630. In yet another example, when both thetransistors 610 and 620 are turned on, the AC input capacitor 210 isdischarged by reducing the voltage level of a signal 634 through theterminal 262 (e.g., HV). In yet another example, the current-limitcomponent 624 detects a current flowing through the resistor 630 andoperates to reduce the current if it is larger than a threshold inmagnitude. In yet another example, the discharging current on thedischarging path is at a predetermined level, e.g., 3 mA. In yet anotherexample, the signal 634 is the same as the signal 322.

FIG. 7 is a simplified diagram showing the AC detection component 310and the voltage control component 320 as parts of the controller 240 forthe switch-mode power conversion system 200 according to an embodimentof the present invention. This diagram is merely an example, whichshould not unduly limit the scope of the claims. One of ordinary skillin the art would recognize many variations, alternatives, andmodifications. The AC detection component 310 includes the comparator410, the debounce component 420, the pulse generator 430, and thecounter 440. The debounce component 420 is omitted in some embodiments.The voltage control component 320 includes transistors 606, 610, 616 and620 and a resistor 630.

For example, the debounce component 420 includes two current sources 750and 752, two transistors 754 and 756, a capacitor 758 and an inverter760. In another example, the counter 440 includes three D flip-flops762, 764 and 766.

FIG. 8 is a simplified diagram showing a switch-mode power conversionsystem according to another embodiment of the present invention. Thisdiagram is merely an example, which should not unduly limit the scope ofthe claims. One of ordinary skill in the art would recognize manyvariations, alternatives, and modifications. For example, the powerconversion system 800 includes an AC input capacitor 810, diodes 820 and822, a resistor 830, a controller 840, a primary winding 882, asecondary winding 884, an auxiliary winding 886, and a switch 880. Inanother example, the controller 840 is a chip that includes terminals850, 852, 854, 856, 858, 860, and 862. In yet another example, thecontroller 840 includes at least an AC detection component 1810 and avoltage control component 1820.

According to one embodiment, the AC detection component 1810 receives asignal 1822 through the resistor 830 and the terminal 862, and receivesa clock signal 1818 and a gate control signal 1824. For example, inresponse, the AC detection component 1810 determines whether the ACamplitude of the signal 1822 is nearly zero and, in response, outputsthe detection signal 1814 (e.g., the ACoff signal) to indicate whetherthe AC amplitude of the signal 1822 is nearly zero. In another example,the voltage control component 1820 receives the detection signal 1814,and if the detection signal 1814 indicates the AC amplitude of thesignal 1822 is nearly zero (e.g., the signal 1822 being nearly a DCsignal), discharges the AC input capacitor 810 by reducing the voltagelevel of the signal 1822 through the terminal 862.

FIG. 9 is a simplified diagram showing the AC detection component 1810as part of the controller 840 for the switch-mode power conversionsystem 800 according to an embodiment of the present invention. Thisdiagram is merely an example, which should not unduly limit the scope ofthe claims. One of ordinary skill in the art would recognize manyvariations, alternatives, and modifications. The AC detection component1810 includes a pulse generator 910, a sampling component 920, acomparator 930, a debounce component 940, a flip-flop component 950, apulse generator 960, and a counter 970.

According to one embodiment, the pulse generator 910 of the AC detectioncomponent 1810 receives the clock signal 1818 and outputs a pulse signal912 to the sampling component 920. For example, the sampling component920 also receives the gate control signal 1824, samples the signal 1822(e.g., sampling 10 times within each AC period), and generates a sampledsignal 922. In another example, the sampled signal 922 is received bythe comparator 930.

According to another embodiment, the comparator 930 compares the sampledsignal 922 with a threshold signal 924 (e.g., V_(th1)) and outputs acomparison signal 932 to the debounce component 940. For example, if theAC input terminals 870 and 872 are provided with an AC input voltage,the comparison signal 932 changes back and forth between the logic highlevel and the logic low level for several times (e.g., 4 times) withineach AC period (e.g., 20 ms). In another example, if the comparisonsignal 932 does not change within a predetermined period of time (e.g.,30 ms), the AC input terminals 870 and 872 are determined to be nolonger provided with the AC input voltage.

According to yet another embodiment, the debounce component 940 inresponse outputs a signal 942 to the flip-flop component 950. Forexample, the flip-flop component also receives a pulse signal 914 fromthe pulse generator 910. In another example, the flip-flop component 950sends a signal 952 (e.g., the Cout signal) to the pulse generator 960,which in response generates a pulse signal 962 (e.g., the reset signal).In yet another example, the pulse signal 962 is received by the counter970, which also receives the clock signal 1818 and generates thedetection signal 1814. In yet another example, an AND gate 998 receivesthe detection signal 1814 and the pulse signal 912 and outputs the gatecontrol signal 1824. In yet another example, the AND gate 998 isincluded in the AC detection component 1810. In yet another example, theAND gate 998 is not included in the AC detection component 1810. In yetanother example, the gate control signal 1824 is equal to a logic sum ofthe detection signal 1814 and the pulse signal 912.

FIG. 10 is a simplified timing diagram for generating the detectionsignal 1814 by the AC detection component 1810 as part of the controller840 for the switch-mode power conversion system 800 according to anembodiment of the present invention. This diagram is merely an example,which should not unduly limit the scope of the claims. One of ordinaryskill in the art would recognize many variations, alternatives, andmodifications.

The waveform 1010 represents the signal 1822 as a function of time, thewaveform 1020 represents the pulse signal 912 as a function of time, thewaveform 1030 represents the sampled signal 922 as a function of time,and the waveform 1040 represents the pulse signal 914 as a function oftime. Additionally, the waveform 1050 represents the signal 952 as afunction of time, the waveform 1060 represents the signal 962 as afunction of time, and the waveform 1070 represents the detection signal1814 as a function of time. Moreover, the waveform 1080 represents thegate control signal 1824 as a function of time.

FIG. 11 is a simplified timing diagram for generating the detectionsignal 1814 by the AC detection component 1810 as part of the controller840 for the switch-mode power conversion system 800 according to anotherembodiment of the present invention. This diagram is merely an example,which should not unduly limit the scope of the claims. One of ordinaryskill in the art would recognize many variations, alternatives, andmodifications. The waveforms 1110, 1120, 1130, 1140, 1150, and 1180 areexpanded views (e.g., from time t_(a) to time t_(b)) for the waveforms1010, 1020, 1030, 1040, 1050, and 1080 respectively.

As discussed above and further emphasized here, FIGS. 8 and 9 are merelyexamples, which should not unduly limit the scope of the claims. One ofordinary skill in the art would recognize many variations, alternatives,and modifications. For example, the debounce component 940 is removed,and thus the signal 932 is the same as the signal 942. In anotherexample, the sampling component 920 and the voltage control component1820 are combined by sharing some components. In yet another example,the AC detection component 1810 is not used as part of the controller840, but used as an independent device or as a component in one or moreother devices.

FIG. 12 is a simplified diagram showing a combination component for thesampling component 920 and the voltage control component 1820 as partsof the controller 840 for the switch-mode power conversion system 800according to an embodiment of the present invention. This diagram ismerely an example, which should not unduly limit the scope of theclaims. One of ordinary skill in the art would recognize manyvariations, alternatives, and modifications.

The combined component 1200 includes transistors 1210, 1220, and 1240,and resistors 1230, 1232, and 1234. For example, the transistors 1210and 1220 and the resistors 1232, and 1234 are used as part of thesampling component 920. In another example, the transistors 1210 and1240 and the resistor 1230 are used as part of the voltage controlcomponent 1820. In yet another example, the transistor 1210 is a MOStransistor that sustains a high voltage (e.g., 600 volts). In yetanother example, the transistor 1210 is an N-channel field effecttransistor (FET). In yet another example, the transistor 1240 is anN-channel FET. In yet another example, the transistor 1220 is anN-channel FET.

In one embodiment, a source terminal of the transistor 1210 is connectedto the resistor 1230. For example, a drain terminal of the transistor1240 is connected to both the resistor 1230 and the resistor 1232 and asource terminal of the transistor 1240 is biased at a chip-groundvoltage 1292. In another example, a drain terminal of the transistor1220 is connected to the resistor 1234 and a source terminal of thetransistor 1220 is biased at a chip-ground voltage 1292. In yet anotherexample, the resistors 1232 and 1234 are connected.

As discussed above, and further emphasized here, FIG. 12 is merely anexample, which should not unduly limit the scope of the claims. One ofordinary skill in the art would recognize many variations, alternatives,and modifications. For example, the combination component 1200 is notused as part of the controller 840, but used as an independent device oras a component in one or more other devices.

FIG. 13 is a simplified diagram showing the AC detection component 1810and the voltage control component 1820 as parts of the controller 840for the switch-mode power conversion system 800 according to anembodiment of the present invention. This diagram is merely an example,which should not unduly limit the scope of the claims. One of ordinaryskill in the art would recognize many variations, alternatives, andmodifications. For example, the debounce component 940 includes twocurrent sources 1350 and 1352, two transistors 1354 and 1356, acapacitor 1358 and an inverter 1360. In another example, the counter 970includes three D flip-flops 1362, 1364 and 1366.

As shown in FIG. 9, FIG. 10, FIG. 11, FIG. 12, and/or FIG. 13, the pulsegenerator 910 generates pulses periodically for the pulse signal 912(e.g., corresponding to the waveform 1020 and/or the waveform 1120), andalso generates pulses periodically for the pulse signal 914 (e.g.,corresponding to the waveform 1040 and/or the waveform 1140) accordingto some embodiments. For example, the pulse signal 912 (e.g., Det_pul)has a same frequency as the pulse signal 914 (e.g., Det_pul_s). Inanother example, the pulse signal 912 (e.g., Det_pul) has a larger dutycycle than the pulse signal 914 (e.g., Det_pul_s). In yet anotherexample, the pulse signal 912 (e.g., Det_pul) has a frequency equal to500 Hz and a duty cycle equal to 1%. In another example, the pulsesignal 914 (e.g., Det_pul_s) has a frequency equal to 500 Hz and a dutycycle equal to 0.5%. In yet another example, a rising edge of the pulsesignal 912 and a rising edge of the pulse signal 914 appear at the sametime.

In one embodiment, the pulse signal 912 (e.g., corresponding to thewaveform 1020 and/or the waveform 1120) is received by the transistor1220, which is turned on by the pulses. For example, the transistor 1210is also turned on by the pulses of the gate control signal 1824 (e.g.,corresponding to the waveform 1080 and/or the waveform 1180). In anotherexample, when both the transistors 1210 and 1220 are turned on, thesignal 1822 is received by a voltage divider that includes the resistors1230, 1232, and 1234 and outputs the sampled signal 922 (e.g., at timet₃ as shown in FIG. 11) as follows (e.g., assuming that theon-resistance of the transistor 1210 and the on-resistance of thetransistor 1220 are both small):

$\begin{matrix}{V_{a\; c\;\_\;{div}} = {V_{a\; c} \times \frac{R_{1}}{R_{1} + R_{2} + R_{3} + R_{4}}}} & \left( {{Equation}\mspace{14mu} 3} \right)\end{matrix}$where V_(ac_div) represents the voltage level of the sampled signal 922,and V_(ac) represents the voltage level of the signal 1822.Additionally, R₁, R₂, R₃, and R₄ represent the resistance values of theresistors 1234, 1232, 1230 and 830 respectively.

In another embodiment, the sampled signal 922 (e.g., corresponding tothe waveform 1030 and/or the waveform 1130) is received by thecomparator 930 (e.g., as shown in FIG. 9 and/or FIG. 13), which comparesthe sampled signal 922 with the threshold signal 924, and outputs thecomparison signal 932. For example, the comparison signal 932 isreceived by the debounce component 940, which in response generates thesignal 942. In another example, the signal 942 is received by theflip-flop component 950, which locks the signal 952 (e.g., correspondingto the waveform 1050 and/or the waveform 1150) as the same as the signal942 at the falling edge of the pulse signal 914 (e.g., at time t₄ asshown in FIG. 11 that corresponds to the falling edge of the waveform1140). In yet another example, if the voltage level of the sampledsignal 922 (e.g., corresponding to the waveform 1030 and/or the waveform1130) is smaller than the threshold signal 924, the signal 952 (e.g.,corresponding to the waveform 1050 and/or the waveform 1150) is at alogic low level. In yet another example, if the voltage level of thesampled signal 922 (e.g., corresponding to the waveform 1030 and/or thewaveform 1130) is larger than the threshold signal 924, the signal 952(e.g., corresponding to the waveform 1050 and/or the waveform 1150) isat a logic high level.

In yet another embodiment, the signal 952 is received by the pulsegenerator 960, which detects rising edges and falling edges of thesignal 952 (e.g., corresponding to the waveform 1050 and/or the waveform1150), and in response generates pulses for the signal 962 (e.g.,corresponding to the waveform 1060). For example, the signal 962 isreceived by the counter 970, which is reset by the pulses of the signal962 (e.g., corresponding to the waveform 1060) and counts the lapse oftime since the last reset. In another example, if the lapse of timesince the last reset reaches a predetermined value (e.g., 30 ms), thecounter 970 generates the detection signal 1814 (e.g., changing to thelogic high level at time t₆ as shown in FIG. 10) to indicate the ACinput terminals 870 and 872 are no longer provided with the AC inputvoltage. In yet another example, the AC input terminals 870 and 872 stopbeing provided with the AC input voltage at time t₅ as shown in FIG. 10.

As shown in FIG. 12 and/or FIG. 13, the detection signal 1814 (e.g.,corresponding to the waveform 1070) is received by the transistor 1240according to certain embodiments. For example, the transistor 1240 isturned on when the detection signal 1814 is at the logic high level. Inanother example, the transistor 1210 is also turned on when the gatecontrol signal 1824 (e.g., corresponding to the waveform 1080 and/or thewaveform 1180) is at the logic high level. In yet another example, whenboth the transistors 1210 and 1240 are turned on, the transistors 1210and 1240, together with the diodes 820 and 822 and the resistors 830 and1230, form a discharging path for the AC input capacitor 810. In yetanother example, the discharging current on the discharging path is at apredetermined level, e.g., 3 mA. In yet another example, when both thetransistors 1210 and 1240 are turned on, the AC input capacitor 810 isdischarged by reducing the voltage magnitude of the signal 1822 throughthe terminal 862.

FIG. 14 is a simplified diagram showing the AC detection component 1810as part of the controller 840 for the switch-mode power conversionsystem 800 according to another embodiment of the present invention.This diagram is merely an example, which should not unduly limit thescope of the claims. One of ordinary skill in the art would recognizemany variations, alternatives, and modifications. The AC detectioncomponent 1810 includes a pulse generator 1410, a sampling component1420, a buffer 1430, a comparator 1440, capacitors 1450 and 1452, acomponent 1460 for addition and subtraction, a determination component1470, switches 1480, 1482, and 1484.

According to one embodiment, the pulse generator 1410 of the ACdetection component 1810 receives a clock signal 1918 and generatessignals 1412, 1414, and 1416. For example, the signal 1412 is receivedby the sampling component 1420, and also received by the switch 1480 asa control signal. In another example, the signal 1414 is received by theswitches 1482 and 1484 as control signals. In yet another example, thesignal 1416 is received by the component 1460. In yet another example,the switch 1480 is closed when the signal 1412 is at the logic highlevel. In yet another example, the switches 1482 and 1484 are closedwhen the signal 1414 is at the logic high level.

According to another embodiment, the signal 1412 is the same as thesignal 912, and the sampling component 1420 is the same as the samplingcomponent 920. For example, the sampling component 1420 samples a signal1922 through the terminal 862 (e.g., sampling 10 times within each ACperiod), and generates a sampled signal 1422. In another example, thesampled signal 1422 is the same as the sampled signal 922.

According to yet another embodiment, when the signal 1414 is at thelogic high level, the voltage across the capacitor 1452 is duplicated,by at least the buffer 1430, as the voltage across the capacitor 1450.For example, the sampled signal 1422 previously obtained is preserved asa signal 1444 (e.g., the V_(nb) signal), and the sampled signal 1422later obtained is represented by a signal 1442 (e.g., the V_(n) signal).In another example, the comparator 1440 receives the signal 1442 and asignal 1445 that is equal to the signal 1444 plus a predeterminedoffset, Vos, and outputs a comparison signal 1446 (e.g., the Ca signal)to the component 1460 for addition and subtraction. In yet anotherexample, if the signal 1442 is equal to the signal 1444 in magnitude,the comparator 1440 outputs the comparison signal 1446 at a logic lowlevel.

As shown in FIG. 14, the component 1460 for addition and subtraction(e.g., an incremental and decremental counter) detects the comparisonsignal 1446 and generates a count signal 1462 based on at leastinformation associated with the comparison signal 1446 according to oneembodiment. For example, if the component 1460 detects at a particulartime (e.g., at a falling edge of the signal 1416) the comparison signal1446 is at the logic high level, the number represented by the countsignal 1462 is decreased by 1. In another example, if the component 1460detects at the particular time (e.g., at the falling edge of the signal1416) the comparison signal 1446 is at the logic low level, the numberrepresented by the count signal 1462 is increased by 1. In yet anotherexample, after every N additions and subtractions (e.g., N is an integerno less than 1), the number represented by the count signal 1462 isreset to 0.

In another embodiment, the determination component 1470 receives thecount signal 1462, and generates the detection signal 1814 For example,the determination component 1470 determines the number represented bythe count signal 1462, and if the number represented by the count signal1462 is larger than a predetermined number or smaller than anotherpredetermined number, generates the detection signal 1914 to indicatethe AC input terminals 870 and 872 are no longer provided with the ACinput voltage. In another example, if the AC input terminals 870 and 872are provided with the AC input voltage, the sampled signal 1422 shouldchange up and down in magnitude; hence if during a predetermined timeperiod (e.g., much longer than half a period of the AC input voltagesignal), the sampled signal 1422 decreases monotonically, increasesmonotonically, or remains unchanged, the AC input terminals 870 and 872are determined to be no longer provided with the AC input voltage.

As discussed above, and further emphasized here, FIG. 14 is merely anexample, which should not unduly limit the scope of the claims. One ofordinary skill in the art would recognize many variations, alternatives,and modifications. For example, instead of detecting the comparisonsignal 1446 at the falling edge of the signal 1416, the component 1460detects the comparison signal 1446 at a rising edge of the signal 1416.In another example, if the signal 1442 is equal to the signal 1444 inmagnitude, the comparator 1440 outputs the comparison signal 1446 at alogic high level. In yet another example, if the component 1460 detectsthat the comparison signal 1446 is at the logic high level, the numberrepresented by the count signal 1462 is increased by 1. In yet anotherexample, if the component 1460 detects the comparison signal 1446 is atthe logic low level, the number represented by the count signal 1462 isdecreased by 1.

FIG. 15 is a simplified timing diagram for generating the detectionsignal 1914 by the AC detection component 1810 as part of the controller840 for the switch-mode power conversion system 800 according to anotherembodiment of the present invention. This diagram is merely an example,which should not unduly limit the scope of the claims. One of ordinaryskill in the art would recognize many variations, alternatives, andmodifications.

The waveform 1510 represents the signal 1412 as a function of time, thewaveform 1520 represents the signal 1414 as a function of time, and thewaveform 1530 represents the signal 1416 as a function of time. Seventiming reference points t₇, t₈, t₉, t₁₀, t₁₁, t₁₂, and t₁₃ are shown inFIG. 15. For example, t₇≤t₈≤t₉≤t₁₀≤t₁₁≤t₁₂≤t₁₃.

In one embodiment, during the time period between t₇ and t₉, the signal1412 (e.g., corresponding to the waveform 1510) is at the logic highlevel; hence the switch 1480 is closed and the sampled signal 1422 isrepresented by the voltage across the capacitor 1452 (e.g., as shown bythe signal 1442). For example, during the time period between t₁₀ tot₁₁, the signal 1414 (e.g., corresponding to the waveform 1520) is atthe logic high level; hence the switches 1482 and 1484 are closed andthe voltage across the capacitor 1452 (e.g., as shown by the signal1442) is represented by the voltage across the capacitor 1450 (e.g., asshown by the signal 1444). In another example, during the time periodbetween t₁₁ to t₁₂, both the signals 1412 and 1414 are at the logic lowlevel; hence the switches 1480, 1482 and 1484 are open and the signal1444 is preserved to represent the sampled signal 1422 that was obtainedduring the previous sampling process. In yet another example, during thetime period between t₁₂ to t₁₃, the signal 1412 is at the logic highlevel; hence the sampled signal 1422 is generated during the currentsampling process and represented by the signal 1442, which is comparedwith the signal 1444. In yet another example, at t₁₃, the comparisonsignal 1446 is received by the component 1460 for addition andsubtraction, and the component 1460 generates, at the falling edge ofthe signal 1416, the count signal 1462 based on at least informationassociated with the comparison signal 1446.

According to another embodiment, a system for discharging a capacitorincludes a signal detector and a discharge control component. The signaldetector is configured to receive an input signal and generate adetection signal based on at least information associated with the inputsignal, the input signal being associated with an alternate currentsignal received by a capacitor including a first capacitor terminal anda second capacitor terminal. A discharge control component is configuredto receive at least the detection signal and generate an output signalto discharge the capacitor if the detection signal satisfies one or moreconditions. For example, the system is implemented according to FIG. 2,FIG. 3, FIG. 4, FIG. 5, FIG. 6, FIG. 7, FIG. 8, FIG. 9, FIG. 10, FIG.11, FIG. 12, FIG. 13, FIG. 14 and/or FIG. 15.

According to another embodiment, a system for detecting an input signalincludes a comparator, a pulse generator, and a detection component. Thecomparator is configured to receive an input signal and a thresholdsignal and generate a comparison signal based on at least informationassociated with the input signal and the threshold signal. The pulsegenerator is configured to generate a pulse signal based on at leastinformation associated with the comparison signal. The detectioncomponent is configured to receive the pulse signal and generate adetection signal based on at least information associated with the pulsesignal. The comparator is further configured to change the comparisonsignal from a first logic level to a second logic level if the inputsignal changes from a first input value larger than the threshold signalto a second input value smaller than the threshold signal. In addition,the comparator is configured to change the comparison signal from thesecond logic level to the first logic level if the input signal changesfrom a third input value smaller than the threshold signal to a fourthinput value larger than the threshold signal. The pulse generator isfurther configured to generate a pulse if the comparison signal ischanged from the first logic level to the second logic level or if thecomparison signal is changed from the second logic level to the firstlogic level. Furthermore, the detection component is further configuredto change the detection signal from a third logic level to a fourthlogic level if no pulse is generated by the pulse generator for apredetermined time period. For example, the system is implementedaccording to at least FIG. 2, FIG. 3, FIG. 4, FIG. 5, and/or FIG. 7.

According to yet another embodiment, a system for discharging a deviceincludes a first transistor including a first transistor terminal, asecond transistor terminal and a third transistor terminal, a secondtransistor including a fourth transistor terminal, a fifth transistorterminal and a sixth transistor terminal, a third transistor including aseventh transistor terminal, an eighth transistor terminal and a ninthtransistor terminal, and a fourth transistor including a tenthtransistor terminal, an eleventh transistor terminal and a twelfthtransistor terminal. The second transistor terminal is connected to thefourth transistor terminal. The fifth transistor terminal is connectedto the seventh transistor terminal. The eighth transistor terminal isconnected to the eleventh terminal and configured to receive an inputsignal. Additionally, the system is further configured to, if the inputsignal satisfies one or more conditions, turn on the first transistorand the fourth transistor, and discharge the device through at least thefirst transistor and the fourth transistor. For example, the system isimplemented according to at least FIG. 2, FIG. 3, FIG. 6, and/or FIG. 7.

In one embodiment, a system for detecting an input signal includes asignal detector, a comparator, a first pulse generator, and a detectioncomponent. The signal detector is configured to sample an input signaland generate one or more sampled signals including a first sampledsignal. The comparator is configured to receive the one or more sampledsignals and a threshold signal and generate a comparison signal based onat least information associated with the one or more sampled signals andthe threshold signal. The first pulse generator is configured togenerate a first pulse signal based on at least information associatedwith the comparison signal. The detection component is configured toreceive the first pulse signal and generate a detection signal based onat least information associated with the first pulse signal. Thecomparator is further configured to, if the first sampled signal issmaller than the threshold signal, generate the comparison signal at afirst logic level. Additionally, the comparator is configured to, if thefirst sampled signal is larger than the threshold signal, generate thecomparison signal at a second logic level. Moreover, the first pulsegenerator is further configured to generate a pulse if the comparisonsignal is changed from the first logic level to the second logic levelor if the comparison signal is changed from the second logic level tothe first logic level. The detection component is further configured tochange the detection signal from a third logic level to a fourth logiclevel if no pulse is generated by the first pulse generator for apredetermined time period. For example, the system is implementedaccording to at least FIG. 8, FIG. 9, FIG. 10, FIG. 11, and/or FIG. 13.

In another embodiment, a system for detecting an input signal anddischarging a device includes a first transistor including a firsttransistor terminal, a second transistor terminal and a third transistorterminal, a second transistor including a fourth transistor terminal, afifth transistor terminal and a sixth transistor terminal, and a thirdtransistor including a seventh transistor terminal, an eighth transistorterminal and a ninth transistor terminal. The system further includes afirst resistor including a first resistor terminal and a second resistorterminal, and a second resistor including a third resistor terminal anda fourth resistor terminal. The third transistor terminal is connected,directly or indirectly, to the fourth transistor terminal. The thirdtransistor terminal is connected, directly or indirectly, to the firstresistor terminal. The second resistor terminal is connected to thethird resistor terminal. The fourth resistor terminal is connected tothe seventh transistor terminal. The first transistor terminal isconfigured to receive an input signal. The second transistor terminal isconfigured to receive a first drive signal. The fifth transistorterminal is configured to receive a second drive signal. Moreover, theeighth transistor terminal is configured to receive a third drivesignal. The system is further configured to, if the first drive signalsatisfies one or more first conditions and the second drive signalsatisfies one or more second conditions, turn on the first transistorand the second transistor, and discharge the device through at least thefirst transistor and the second transistor. In addition, the system isfurther configured to, if the first drive signal satisfies the one ormore first conditions and the third drive signal satisfies one or morethird conditions, turn on the first transistor and the third transistor,and generate an output signal based on at least information associatedwith the input signal. For example, the system is implemented accordingto at least FIG. 8, FIG. 9, FIG. 10, FIG. 11, FIG. 12, and/or FIG. 13.

In yet another embodiment, a system for detecting an input signalincludes a signal detector, a comparator, a counting component, and adetection component. The signal detector is configured to sample aninput signal at a plurality of times during a first predetermined timeperiod and generate a plurality of sampled signals corresponding to theplurality of times respectively, the plurality of times including afirst time and a second time immediately after the first time, theplurality of sampled signals including a first sampled signalcorresponding to the first time and a second sampled signalcorresponding to the second time. The comparator is configured toreceive the plurality of sampled signals and generate a comparisonsignal based on at least information associated with the plurality ofsampled signals. The counting component is configured to receive atleast the comparison signal and change a value based on at leastinformation associated with the comparison signal. The detectioncomponent is configured to generate a detection signal based on at leastinformation associated with the value. The comparator is furtherconfigured to, if the first sampled signal is smaller than the secondsampled signal, generate the comparison signal at a first logic level.Additionally, the comparator is configured to, if the first sampledsignal is larger than the second sampled signal, generate the comparisonsignal at the second logic level. The counting component is furtherconfigured to increase the value by a first predetermined magnitude ifthe comparison signal is at the first logic level, and decrease thevalue by a second predetermined magnitude if the comparison signal is atthe second logic level. The detection component is further configured tochange the detection signal from a third logic level to a fourth logiclevel if the value is larger than a first threshold or smaller than asecond threshold after the first predetermined time period. For example,the system is implemented according to at least FIG. 8, FIG. 14 and/orFIG. 15.

For example, some or all components of various embodiments of thepresent invention each are, individually and/or in combination with atleast another component, implemented using one or more softwarecomponents, one or more hardware components, and/or one or morecombinations of software and hardware components. In another example,some or all components of various embodiments of the present inventioneach are, individually and/or in combination with at least anothercomponent, implemented in one or more circuits, such as one or moreanalog circuits and/or one or more digital circuits. In yet anotherexample, various embodiments and/or examples of the present inventioncan be combined.

Although specific embodiments of the present invention have beendescribed, it will be understood by those of skill in the art that thereare other embodiments that are equivalent to the described embodiments.Accordingly, it is to be understood that the invention is not to belimited by the specific illustrated embodiments, but only by the scopeof the appended claims.

What is claimed is:
 1. A system for discharging a capacitor, the systemcomprising: a signal detector configured to: receive an input signal;compare the input signal with a predetermined threshold; and generate adetection signal based on at least information associated with the inputsignal, the input signal being associated with an alternate currentsignal received by a capacitor including a first capacitor terminal anda second capacitor terminal; and a discharge control componentconfigured to receive at least the detection signal and generate anoutput signal to discharge the capacitor if the detection signalsatisfies one or more conditions; wherein the discharge controlcomponent is further configured to generate the output signal todischarge the capacitor if the detection signal indicates that during apredetermined time period, the input signal remains larger than thepredetermined threshold.
 2. The system of claim 1 wherein the dischargecontrol component is further configured to generate the output signal todischarge the capacitor if the detection signal indicates the capacitoris disconnected from the alternate current signal.
 3. The system ofclaim 1, and further comprising: a first diode including a first diodeterminal and a second diode terminal; and a second diode including athird diode terminal and a fourth diode terminal; wherein: the seconddiode terminal is connected to the third diode terminal; the first diodeterminal is connected to the first capacitor terminal; and the fourthdiode terminal is connected to the second capacitor terminal.
 4. Thesystem of claim 3 wherein: the second diode terminal and the third diodeterminal are cathode terminals; and the first diode terminal and thefourth diode terminal are anode terminals.
 5. The system of claim 3wherein the discharge control component is further configured to providethe output signal to the second diode terminal and the third diodeterminal.
 6. The system of claim 1, and further comprising: a firstresistor including a first resistor terminal and a second resistorterminal; and a second resistor including a third resistor terminal anda fourth resistor terminal; wherein: the first resistor terminal isconnected to the capacitor; the second resistor terminal is connected tothe third resistor terminal; and the signal detector is furtherconfigured to receive the input signal from the second resistorterminal.
 7. The system of claim 6 wherein the fourth resistor terminalis biased at a predetermined voltage.
 8. The system of claim 1 whereinthe signal detector is further configured to: compare a time periodduring which the input signal remains larger than the predeterminethreshold with the predetermined time period.
 9. The system of claim 8,wherein the discharge control component is further configured togenerate the output signal that does not discharge the capacitor if thedetection signal indicates that the time period is smaller than thepredetermined time period.
 10. A system for discharging a capacitor, thesystem comprising: a signal detector configured to: receive an inputsignal; compare the input signal with a predetermined threshold; andgenerate a detection signal based on at least information associatedwith the input signal, the input signal being associated with analternate current signal received by a capacitor including a firstcapacitor terminal and a second capacitor terminal; and a dischargecontrol component configured to receive at least the detection signaland generate an output signal to discharge the capacitor if thedetection signal satisfies one or more conditions; wherein the dischargecontrol component is further configured to generate the output signal todischarge the capacitor if the detection signal indicates that during apredetermined time period, the input signal remains smaller than thepredetermined threshold.
 11. The system of claim 10 wherein thedischarge control component is further configured to generate the outputsignal to discharge the capacitor if the detection signal indicates thecapacitor is disconnected from the alternate current signal.
 12. Thesystem of claim 10, and further comprising: a first diode including afirst diode terminal and a second diode terminal; and a second diodeincluding a third diode terminal and a fourth diode terminal; wherein:the second diode terminal is connected to the third diode terminal; thefirst diode terminal is connected to the first capacitor terminal; andthe fourth diode terminal is connected to the second capacitor terminal.13. The system of claim 12 wherein: the second diode terminal and thethird diode terminal are cathode terminals; and the first diode terminaland the fourth diode terminal are anode terminals.
 14. The system ofclaim 12 wherein the discharge control component is further configuredto provide the output signal to the second diode terminal and the thirddiode terminal.
 15. The system of claim 10, and further comprising: afirst resistor including a first resistor terminal and a second resistorterminal; and a second resistor including a third resistor terminal anda fourth resistor terminal; wherein: the first resistor terminal isconnected to the capacitor; the second resistor terminal is connected tothe third resistor terminal; and the signal detector is furtherconfigured to receive the input signal from the second resistorterminal.
 16. The system of claim 15 wherein the fourth resistorterminal is biased at a predetermined voltage.
 17. The system of claim10 wherein the signal detector is further configured to: compare a timeperiod during which the input signal remains smaller than thepredetermine threshold with the predetermined time period.
 18. Thesystem of claim 17, wherein the discharge control component is furtherconfigured to generate the output signal that does not discharge thecapacitor if the detection signal indicates that the time period issmaller than the predetermined time period.